home *** CD-ROM | disk | FTP | other *** search
- Path: nntp1.best.com!tm2
- From: tm2@nntp.best.com (Toshi Morita)
- Newsgroups: comp.lang.c,gnu.gcc.help,comp.unix.programmer
- Subject: Re: Help for using bcopy function
- Followup-To: comp.lang.c,gnu.gcc.help,comp.unix.programmer
- Date: 4 Mar 1996 23:39:56 GMT
- Organization: Best Internet Communications
- Message-ID: <4hfv0c$sb9@nntp1.best.com>
- References: <4gl53u$4bv@kocrsv08.delcoelect.com> <ELIAS.96Feb27144032@cepheus.omicron.se> <31372F78.167EB0E7@pia.bt.co.uk>
- NNTP-Posting-Host: shellx.best.com
- X-Newsreader: TIN [version 1.2 PL2]
-
- Alwyn Thomas (alwyn@pia.bt.co.uk) wrote:
- : Elias Martenson wrote:
-
- : > bcopy() is not standard AFAIK. Use memcpy instead.
- : It's certainly standard on SunOS.
-
- SunOS isn't a standard, bud. It's a specific implementation.
-
- bcopy() isn't a standard C library call - it's a BSD extension.
-
- : What the enquirer needs to do is to add the line:
- : extern bcopy();
- : at the top of every source file in which bcopy() is called.
- : If you are using g++ you should put:
- : extern "C" void bcopy(char*, char*);
- : instead.
-
- No, if bcopy doesn't exist, it doesn't exist, and you have the number of
- parameters wrong anyway.
-
- This should be better:
-
- #define bcopy(src,dest,len) memmove(dest,src,len)
-
- : Alwyn
-
- Toshi
-